package com.ruoyi.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 品牌#brand_info
 * @TableName brand_info
 */
public class BrandInfo extends BaseEntity implements Serializable {
    /**
     * 品牌主键#primary
     */
    private Long brandId;

    /**
     * 中文名
     */
    private String brandCnName;

    /**
     * 英文名
     */
    private String brandEnName;

    /**
     * logo路径
     */
    private String brandLogoPath;

    /**
     * 网址
     */
    private String brandWebUrl;

    /**
     * 权重
     */
    private Integer brandNum;

    /**
     * 说明
     */
    private String brandInfo;

    private List<Integer> coneIds;

    private String coneIdsStr;

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("BrandInfo{");
        sb.append("brandId=").append(brandId);
        sb.append(", brandCnName='").append(brandCnName).append('\'');
        sb.append(", brandEnName='").append(brandEnName).append('\'');
        sb.append(", brandLogoPath='").append(brandLogoPath).append('\'');
        sb.append(", brandWebUrl='").append(brandWebUrl).append('\'');
        sb.append(", brandNum=").append(brandNum);
        sb.append(", brandInfo='").append(brandInfo).append('\'');
        sb.append(", coneIds=").append(coneIds);
        sb.append(", coneIdsStr='").append(coneIdsStr).append('\'');
        sb.append(", brandFoundedDate=").append(brandFoundedDate);
        sb.append(", brandFoundedDateFrom=").append(brandFoundedDateFrom);
        sb.append(", brandFoundedDateTo=").append(brandFoundedDateTo);
        sb.append(", brandNums=").append(brandNums);
        sb.append('}');
        return sb.toString();
    }

    public String getConeIdsStr() {
        return coneIdsStr;
    }

    public void setConeIdsStr(String coneIdsStr) {
        this.coneIdsStr = coneIdsStr;
    }

    public List<Integer> getConeIds() {
        return coneIds;
    }

    public void setConeIds(List<Integer> coneIds) {
        this.coneIds = coneIds;
    }

    /**
     * 成立时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date brandFoundedDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date brandFoundedDateFrom;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date brandFoundedDateTo;
    private List<Integer> brandNums;


    private static final long serialVersionUID = 1L;


    public Date getBrandFoundedDateFrom() {
        return brandFoundedDateFrom;
    }

    public void setBrandFoundedDateFrom(Date brandFoundedDateFrom) {
        this.brandFoundedDateFrom = brandFoundedDateFrom;
    }

    public Date getBrandFoundedDateTo() {
        return brandFoundedDateTo;
    }

    public void setBrandFoundedDateTo(Date brandFoundedDateTo) {
        this.brandFoundedDateTo = brandFoundedDateTo;
    }

    /**
     * 品牌主键#primary
     */
    public Long getBrandId() {
        return brandId;
    }

    /**
     * 品牌主键#primary
     */
    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    /**
     * 中文名
     */
    public String getBrandCnName() {
        return brandCnName;
    }

    /**
     * 中文名
     */
    public void setBrandCnName(String brandCnName) {
        this.brandCnName = brandCnName;
    }

    /**
     * 英文名
     */
    public String getBrandEnName() {
        return brandEnName;
    }

    /**
     * 英文名
     */
    public void setBrandEnName(String brandEnName) {
        this.brandEnName = brandEnName;
    }

    /**
     * logo路径
     */
    public String getBrandLogoPath() {
        return brandLogoPath;
    }

    /**
     * logo路径
     */
    public void setBrandLogoPath(String brandLogoPath) {
        this.brandLogoPath = brandLogoPath;
    }

    /**
     * 网址
     */
    public String getBrandWebUrl() {
        return brandWebUrl;
    }

    /**
     * 网址
     */
    public void setBrandWebUrl(String brandWebUrl) {
        this.brandWebUrl = brandWebUrl;
    }

    /**
     * 权重
     */
    public Integer getBrandNum() {
        return brandNum;
    }

    /**
     * 权重
     */
    public void setBrandNum(Integer brandNum) {
        this.brandNum = brandNum;
    }

    /**
     * 说明
     */
    public String getBrandInfo() {
        return brandInfo;
    }

    /**
     * 说明
     */
    public void setBrandInfo(String brandInfo) {
        this.brandInfo = brandInfo;
    }

    /**
     * 成立时间
     */
    public Date getBrandFoundedDate() {
        return brandFoundedDate;
    }

    /**
     * 成立时间
     */
    public void setBrandFoundedDate(Date brandFoundedDate) {
        this.brandFoundedDate = brandFoundedDate;
    }

    public List<Integer> getBrandNums() {
        return brandNums;
    }

    public void setBrandNums(List<Integer> brandNums) {
        this.brandNums = brandNums;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BrandInfo other = (BrandInfo) that;
        return (this.getBrandId() == null ? other.getBrandId() == null : this.getBrandId().equals(other.getBrandId()))
            && (this.getBrandCnName() == null ? other.getBrandCnName() == null : this.getBrandCnName().equals(other.getBrandCnName()))
            && (this.getBrandEnName() == null ? other.getBrandEnName() == null : this.getBrandEnName().equals(other.getBrandEnName()))
            && (this.getBrandLogoPath() == null ? other.getBrandLogoPath() == null : this.getBrandLogoPath().equals(other.getBrandLogoPath()))
            && (this.getBrandWebUrl() == null ? other.getBrandWebUrl() == null : this.getBrandWebUrl().equals(other.getBrandWebUrl()))
            && (this.getBrandNum() == null ? other.getBrandNum() == null : this.getBrandNum().equals(other.getBrandNum()))
            && (this.getBrandInfo() == null ? other.getBrandInfo() == null : this.getBrandInfo().equals(other.getBrandInfo()))
            && (this.getBrandFoundedDate() == null ? other.getBrandFoundedDate() == null : this.getBrandFoundedDate().equals(other.getBrandFoundedDate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBrandId() == null) ? 0 : getBrandId().hashCode());
        result = prime * result + ((getBrandCnName() == null) ? 0 : getBrandCnName().hashCode());
        result = prime * result + ((getBrandEnName() == null) ? 0 : getBrandEnName().hashCode());
        result = prime * result + ((getBrandLogoPath() == null) ? 0 : getBrandLogoPath().hashCode());
        result = prime * result + ((getBrandWebUrl() == null) ? 0 : getBrandWebUrl().hashCode());
        result = prime * result + ((getBrandNum() == null) ? 0 : getBrandNum().hashCode());
        result = prime * result + ((getBrandInfo() == null) ? 0 : getBrandInfo().hashCode());
        result = prime * result + ((getBrandFoundedDate() == null) ? 0 : getBrandFoundedDate().hashCode());
        return result;
    }

}